package com.hdw.auth.bean.model;

import java.io.Serializable;

public class BaseAuthRolefu implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long idRolefu;

    private Long idRole;

    private Long idFu;

    public Long getIdRolefu() {
        return idRolefu;
    }

    public void setIdRolefu(Long idRolefu) {
        this.idRolefu = idRolefu;
    }

    public Long getIdRole() {
        return idRole;
    }

    public void setIdRole(Long idRole) {
        this.idRole = idRole;
    }

    public Long getIdFu() {
        return idFu;
    }

    public void setIdFu(Long idFu) {
        this.idFu = idFu;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BaseAuthRolefu other = (BaseAuthRolefu) that;
        return (this.getIdRolefu() == null ? other.getIdRolefu() == null : this.getIdRolefu().equals(other.getIdRolefu()))
            && (this.getIdRole() == null ? other.getIdRole() == null : this.getIdRole().equals(other.getIdRole()))
            && (this.getIdFu() == null ? other.getIdFu() == null : this.getIdFu().equals(other.getIdFu()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIdRolefu() == null) ? 0 : getIdRolefu().hashCode());
        result = prime * result + ((getIdRole() == null) ? 0 : getIdRole().hashCode());
        result = prime * result + ((getIdFu() == null) ? 0 : getIdFu().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", idRolefu=").append(idRolefu);
        sb.append(", idRole=").append(idRole);
        sb.append(", idFu=").append(idFu);
        sb.append("]");
        return sb.toString();
    }
}